package com.sc.teacher.service.impl;

import com.sc.teacher.mapper.EduteacherMapper;
import com.sc.teacher.pojo.Eduteacher;
import com.sc.teacher.service.TeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TeacherServiceImpl implements TeacherService {

    @Autowired
    EduteacherMapper tm;

    @Override
    public int updTeacher(Eduteacher teacher) {
        return tm.updateByPrimaryKeySelective(teacher);
    }

    @Override
    public int insTeacher(Eduteacher teacher) {
        return tm.insertSelective(teacher);
    }
}
